package site.teamo.biu.flink.web.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;
import site.teamo.biu.flink.common.function.descriptor.OperatorDescriptor;
import site.teamo.biu.flink.common.function.descriptor.OperatorPackageDescriptor;
import site.teamo.biu.flink.web.entity.OperatorPackageDO;
import site.teamo.biu.flink.web.service.model.functionpackage.VerifyFunctionPackageResult;

import java.util.List;

/**
 * @author haocongshun
 * @date 2023/10/30 17:25:36
 */

public interface OperatorPackageService extends IService<OperatorPackageDO> {

    List<OperatorPackageDO> queryList(String keyword);

    List<OperatorDescriptor> info(String id);

    VerifyFunctionPackageResult verify(MultipartFile file);

    OperatorPackageDO save(String filePath, OperatorPackageDescriptor descriptor);

    void delete(List<String> ids);

}
